interface AddFunction {
    (x: number, y: number): number;
}

let add: AddFunction = (x, y) => x + y;
let result: number = add(8, 8);
console.log(result);
//16